Skip to content

Fix SQLite prepare and value contracts [skip ci] - #231

Merged
vigoo merged 5 commits into
node-26-targetfrom
fix-sqlite-value-contracts
Nov 27, 2026
Merged

vigoo merged 5 commits into
node-26-targetfrom
fix-sqlite-value-contracts

Conversation

@noise64

@noise64 noise64 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
  • combines Fix SQLite prepare options #230 and Fix SQLite prepare and value contracts [skip ci] #231 for the SQLite slice of GOL-1947; does not close the broader migration/consumer work
  • validates the four existing Database.prepare boolean options in Node 26 order, preserving defaults, explicit false overrides, inherited/getter properties and setters; rejects invalid options and rechecks database state after getters. The private accumulator now has a null prototype so inherited getter-only properties cannot reject explicit own options
  • throws ERR_INVALID_STATE for isTransaction on unopened/closed databases; binds JS Numbers as SQLite REAL and explicit BigInts as INTEGER, preserving column affinities
  • ordinarily merges published Switch node_compat to Node 26.13.1 #218 fad0d5f0 into this branch at d3e9d832; only the generated report conflicted and was regenerated from merged config. SQLite implementation/fixtures remain byte-identical to the separately reviewed d164f442 repair. Fix SQLite prepare options #230 is redundant; downstream Add optional zstd support #232/Fix SQLite statement ownership #237 remain separate. No earlier agreement or approval transfers to this candidate

Node compatibility

Actual #218 base fad0d5f0 → head d3e9d832: runnable 3195 → 3200, known gaps 1304 → 1299; primary 3195/4499 (71.0%) → 3200/4499 (71.1%); full public 3195/9654 (33.1%) → 3200/9654 (33.1%). Total 10794 unchanged. SQLite runnable 27 → 32, known gaps 32 → 27, total 117 unchanged.

Only five complete upstream cases are restored: four prepare-option cases and isTransaction. No vendor edits or blanket promotions. Number binding is verified through public result controls; its broader upstream suites still fail.

Validation and limits

  • exact integrated head: SQLite runtime 14 passed, configured compatibility 32 passed / 109 ignored; report tests 37 passed / 1 generator ignored, SQLite DTS 1 passed; all-target build/Clippy (-Dwarnings), formatting, five skeleton Clippy lanes and dev-tool format/lint/TypeScript passed. Generated JS/native SQLite source bytes match the candidate
  • pinned Node 26.13.1 public controls cover options, getter/error precedence, asymmetric named/row results, transaction/reopen behavior and Number/BigInt binding. The four prototype-accessor controls pass host Node and repaired WASM; their unchanged-code red is retained separately. Both required model families cleared the two-file repair and then the complete eight-file integrated comparison; static reviews do not independently execute tests
  • earlier ignored-suite diagnostics remain qualified, not rerun integration claims: statement 7 passed / 15 failed, named parameters 2/1, database 4/4, data-types 0/1, typed-array/data-view 1/1. Statement lifetime/finalization/statistics and other broader SQLite contracts are not repaired here
  • exact-head CI 45802967730 completed successfully on d3e9d832: all 28 executed validation jobs passed; release/publish skipped. No manual rerun. Green #218 CI 45798881357 validates only the included fad0d5f0 foundation. Historical CI 45428022548 validates the Fix SQLite prepare options #230 ancestor 9747a859: 24 executed jobs passed, compatibility 3162 passed / 7632 skipped, runtime 592 passed / 4 skipped, test-other 160 passed; Proof/release/publish skipped. No downstream full-suite or fork run is claimed locally
  • original Fix SQLite prepare options #230 provenance addendum remains: red-inputs-final.sha256 hashes an earlier fixture, not the final-red fixture; same-final-test chronology rests on reviewed command history/source reconstruction. Frozen evidence is unchanged. Fix SQLite prepare and value contracts [skip ci] #231 red binaries were not retained; author-run precommit evidence and excluded zero-selection/incorrect-negative-zero attempts remain qualified
  • stock Wasmtime 50.0.1, Rust 1.100.0, WASI SDK 25; wasm32-wasip2/Preview 3, full-p3 runtime and full-no-logging-p3,golem,typescript-runtime compatibility components. Harness Golem features do not establish consumer/recovery or shipped-artifact qualification. No new crypto/DH, zstd or NJ-03 scope is included

@noise64
noise64 marked this pull request as ready for review November 25, 2026 09:59
@noise64
noise64 marked this pull request as draft November 25, 2026 10:24
@noise64 noise64 changed the title Fix SQLite value contracts [skip ci] Fix SQLite prepare and value contracts [skip ci] Nov 25, 2026
@noise64
noise64 changed the base branch from fix-sqlite-prepare-options to node-26-target November 25, 2026 10:24
@noise64
noise64 marked this pull request as ready for review November 25, 2026 22:45
@noise64
noise64 marked this pull request as draft November 26, 2026 07:17
@noise64
noise64 marked this pull request as ready for review November 26, 2026 11:15

@vigoo vigoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the delta against #218 (fad0d5f). No blocking findings in the SQLite prepare-option validation, transaction-state checks, or Number binding changes. Checked the contracts against Node 26.13.1 and ran the three new public fixtures on pinned Node; all passed. Confirmed that exact-head CI explicitly passed the new runtime tests and five promoted compatibility cases. WASM execution evidence is from CI, not a local rebuild. This approval covers only this delta, not broader SQLite gaps or downstream PRs.

@vigoo
vigoo merged commit 242970e into node-26-target Nov 27, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants